repo/private: allow committing/aborting through a transaction guard
authorLuca BRUNO <luca.bruno@coreos.com>
Fri, 1 Oct 2021 16:04:02 +0000 (16:04 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Tue, 5 Oct 2021 12:23:22 +0000 (12:23 +0000)
commitc9875345959fb4a028a7596b643d922a952277d0
tree9fde928d4c10a451b6d91fe5b1a91368fa50f00c
parent5bf4b1dabc12d6caee4f4899c9388a48bb4a72a3
repo/private: allow committing/aborting through a transaction guard

This enhances the auto-transaction logic, augmenting the scope of a
transaction guard.
It allows committing or aborting a transaction through its guard.
It also supports tracking the completion status of a transaction
guard, avoiding double commits/aborts, while retaining the auto-cleanup
logic.
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/libostree/ostree-sysroot-cleanup.c